import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication
@ComponentScan(basePackages = {"com.sc.nft"})
@EnableCaching(proxyTargetClass = true)
@EnableAsync //开启异步调用
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.sc.nft.feign","com.meta"})
public class ImApiApplication {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(ImApiApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.setAllowBeanDefinitionOverriding(true);
        app.run(args);
    }

}
